package com.sunfeng.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *  想要远程调用别的服务
 *   引入openFein
 *   编写一个接口，告诉springcloud 这个接口需要远程调用
 *    声明接口中的每一个方法是远程调用的那个请求
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.sunfeng.gulimall.member.feign")
public class GuLiMallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuLiMallMemberApplication.class, args);
    }

}
